import { defHttp } from '@/utils/http/axios';

// 获取自习室列表
export const getStudyRoomListApi = (params: any) =>
  defHttp.get({
    url: '/face_recognition/room/get_study_rooms',
    params,
  });

// 新增自习室
export const addStudyRoomApi = (data: any) =>
  defHttp.post({
    url: '/face_recognition/room/add_study_room',
    data,
  });

// 更新自习室信息
export const putStudyRoomApi = (data: any) =>
  defHttp.put({
    url: '/face_recognition/room/update_study_room',
    data,
  });

// 删除自习室
export const deleteStudyRoomApi = (RoomID: any) =>
  defHttp.delete({
    url: '/face_recognition/room/delete_study_room/' + RoomID,
  });
